#include<stdio.h>
#include<unistd.h>

int main()
{
    int second = 9;
    while(second)
    {
    printf("%d\r",second--);
    fflush(stdout);    
    sleep(1);
    }
    return 0;
}
